]> dgit.raspbian.org Git - gnome-shell.git/commit
dialog: Really set ellipsize mode in subtitle and body
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 3 May 2019 20:27:13 +0000 (15:27 -0500)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 3 May 2019 20:34:05 +0000 (15:34 -0500)
commit3121c9aa29406ad85e949b697e90092f1fa6fc2e
tree873af2ba0de5fbecf55874a01e0b571145396a9f
parent1ebbd7c7684f3887e74c369522c65ebbd8cd1e67
dialog: Really set ellipsize mode in subtitle and body

Dialog's subtitle or body could not be properly wrapped, while it's ellipsized
when the text's width doesn't exceed the container size.

Clutter text has an `ellipsize` property, however in dialog's subtitle and body
we have been setting the `ellipsize-mode` property to Pango.EllipsizeMode.NONE
that is not present in the underlying GObject.

Not being an error in javascript, gjs didn't warn us about this, while at the
same time the St.Label's default Pango.EllipsizeMode.END was used.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/922

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/531
js/ui/dialog.js